package com.test.ssm.service.impl;

import com.test.ssm.dao.TicketDAO;
import com.test.ssm.pojo.Ticket;
import com.test.ssm.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 徒有琴
 */
@Service
public class TicketServiceImpl implements TicketService {
    @Autowired
    private TicketDAO ticketDAO;

    @Override
    public List<Ticket> getTicketByFlightId(Integer flightId) {
        return ticketDAO.getTicketByFlightId(flightId);
    }
}
